<template>
    <div>
        <h1>123</h1>
        {{form}}---
        {{count}}---
        <van-button>天天</van-button>
        <button @click="change">点击</button>
    </div>   
</template>

<script>
import axios from '../http/axios'
import {onMounted, reactive,ref} from 'vue'
export default {
    setup(){
        let form = reactive({'name':'tt','password':123})
        let count = ref(0)
        const change=()=>{
            form.name='asd'
            count.value=12
            axios('zxc','get').then(res=>{
               console.log(res)
            })
        }
     
        onMounted(()=>{
            change
        })
        return{
            form,
            count,
            change
        }
    }
}
</script>

<style>

</style>